package com.member.shop.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.member.common.annotation.Excel;
import com.member.common.core.domain.BaseDevEntity;
import com.member.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

/**
 * 发展会员数订单对象 sys_biz_develop_order
 *
 * @author lixinchen
 * @date 2024-01-09
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_biz_develop_order")
public class SysBizDevelopOrder extends BaseDevEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 发展会员订单编号
     */
    @Excel(name = "发展会员订单编号")
    private String developCode;

    /**
     * 下单人id
     */
    @Excel(name = "下单人id")
    private Long userId;

    /**
     * 下单人
     */
    @Excel(name = "下单人")
    private String userName;

    /**
     * 下单人手机号
     */
    @Excel(name = "下单人手机号")
    private String phone;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private Long number;

    /**
     * 订单金额
     */
    @Excel(name = "订单金额")
    private BigDecimal amount;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date orderAddTime;

    /**
     * 支付金额
     */
    @Excel(name = "支付金额")
    private BigDecimal payableAmount;

    /**
     * 商品id
     */
    @Excel(name = "商品id")
    private Long goodsId;

    /**
     * 赠品商品编号
     */
    @Excel(name = "赠品商品编号")
    private String goodsCode;

    /**
     * 赠品商品名称
     */
    @Excel(name = "赠品商品名称")
    private String goodsName;

    /**
     * 收件人姓名
     */
    @Excel(name = "收件人姓名")
    private String receiveName;

    /**
     * 收货人手机号
     */
    @Excel(name = "收货人手机号")
    private String receivePhone;

    /**
     * 收货地址
     */
    @Excel(name = "收货地址")
    private String address;

    /**
     * 订单状态 0 待发货 1已发货
     */
    @Excel(name = "订单状态 0 待发货 1已发货")
    private Integer status;

    /**
     * 快递公司
     */
    @Excel(name = "快递公司")
    private String expressCompany;

    /**
     * 快递单号
     */
    @Excel(name = "快递单号")
    private String expressNo;

    /**
     * 支付状态（0未支付 1已支付 2支付超时）
     */
    private Integer paymentStatus;

    /**
     * 富友流水号
     */
    private String paymentNo;

    /**
     * 支付流水号
     */
    private String paymentId;

    /**
     * 支付时间
     */
    private Date paymentTime;
    /**
     * 备注
     */
    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date paymentTimeEnd;

    /**
     * 微信流水号
     */
    private String transactionId;
}
